package com.otod.pm.doc.service;



import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import org.springframework.transaction.annotation.Transactional;

import com.otod.base.service.BaseService;
import com.otod.pm.doc.mapper.PmDocMasterMapper;
import com.otod.pm.doc.vo.PmDocMasterVo;

@Service	   
@Transactional(readOnly=true)
public class PmDocMasterService extends BaseService{
	protected static final Logger logger = LoggerFactory.getLogger(PmDocMasterService.class);
	
	@Autowired
	private PmDocMasterMapper pmDocMasterMapper;
	
	
	@Transactional
	public PmDocMasterVo insert(PmDocMasterVo pmDocMasterVo){
		pmDocMasterVo.setUuid(super.getUUID());
		pmDocMasterMapper.insert(pmDocMasterVo);
		return pmDocMasterVo;
	}
	
	public List<PmDocMasterVo> queryForList(Map<String,Object> map){
		return pmDocMasterMapper.queryForList(map);
		
	}
	
	
	
	
}
